// 封装重复样式的函数--------------------------------------
@mixin p($width, $height) {
    width: $width;
    height: $height;
    background-color: #e9e9eb;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-left: 40px;
    box-sizing: border-box;
    margin: 20px auto;

}

@mixin button() {
    width: 500px;
    height: 50px;
    color: #fff;
    line-height: 50px;
    font-size: 16px;
    background-color: #bdcefc;
    margin-bottom: 18px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
}

@mixin input() {
    width: 343px;
    height: 40px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    outline: none;
}

@mixin label() {
    font-size: 14px;
    line-height: 14px;
    width: 40px;
    margin-right: 15px;
}

// 注册框的样式----------------------------------
.register {


    .box {

        @include p(700px, 555px);

        span {
            font-size: 13px;
            color: #2e94f9;
        }

        label {
            @include label();
        }

        input {
            @include input();
        }

        // 头部样式------------------------------------------
        .top {
            h1 {
                font-size: 34px;
                line-height: 34px;
                font-weight: bolder;
                margin-bottom: 12px;
            }

            p {
                font-size: 14px;
                line-height: 14px;
                color: #9b9b9b;

                span {
                    cursor: pointer;
                }
            }
        }

        // 中间部分的样式-----------------------------------
        .main {
            p {
                margin-bottom: 32px;
            }

            .huoqu {
                display: inline-block;
                width: 126px;
                height: 40px;
                text-align: center;
                font-size: 12px;
                line-height: 40px;
                border: 1px solid #e0e0e0;
                box-sizing: border-box;
                background-color: #fff;
                color: black;
                position: relative;
                top: 1px;
                border-radius: 4px;
            }

            .lastinp {
                width: 206px;
                margin-right: 9px;
                margin-bottom: 0px;
            }


            .ww {
                display: flex;

                .ju {
                    display: flex;
                    justify-content: space-between;
                    padding-top: 12px;
                    box-sizing: border-box;
                }

            }

            #inp3-error {
                width: 250px;
                position: relative;
                top: 10px
            }

            .yanzheng_p {
                position: relative;

            }

            #inp4-error {
                width: 200px;
                position: absolute;
                left: 400px;
                top: 12px
            }

        }

        // 底部样式---------------------------------------
        .bottom {
            .zhuce {
                @include button();
            }

            p {
                font-size: 13px;
                line-height: 13px;
            }

            input[type="checkbox"] {
                width: 13px;
                height: 13px;
            }

        }

        input[type="text"],
        input[type="password"] {

            border-radius: 4px;
        }

    }
}

// 登录框的样式-------------------------------------
.denglu {
    display: none;

    .big {
        @include p(700px, 300px);

        p {
            label {
                @include label();
            }

            input {
                @include input();
                border-radius: 4px;
            }


        }

        .denglu_p1 {
            margin-left: 1em
        }

        p:last-of-type {
            width: 150px;
            position: relative;
            top: -40px;
            left: 350px;

            font-size: 12px;

            .fanhui {
                color: #2e94f9;
                cursor: pointer
            }
        }

        .loginbtn {
            @include button();
        }
    }
}